home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / scope / 126-150 / scopedisk145 / bug / bug.doc < prev    next >
Encoding:
Text File  |  1995-03-19  |  3.5 KB  |  80 lines

  1. 4]------------------
  2. 3]BUG
  3. 3]By Dennis Saunders
  4. 4]------------------
  5.  
  6.      BUG is a simple simulation of single-celled animal growth. There are
  7. two types of bugs, each of which has a behavior pattern determined by you. 
  8. You also control the environment and initial conditions. A bug with a
  9. successful behavior pattern will grow and multiply. Success depends on the
  10. environment and competition from other bugs.
  11.      This program is free. I include the source code (unrefined as it is)
  12. and encourage you to modify it as you wish. (JUMPDISK NOTE: The source is
  13. crunched on this disk. See item on decrunching to save this file as plain
  14. text.)
  15.      I would like to hear your comments. Contact me at this address: Dennis
  16. Saunders, 741 Goldfinch Way, Anaheim, CA 92807. Telephone: (714) 637-1851.
  17.  
  18. 3]BEHAVIOR OF BUGS
  19.      Basic behavior which cannot be altered is as follows:
  20.      If a wall or a bug of the same type is encountered, the bug will
  21. turn in a random direction.
  22.      Each cycle, a bug uses one energy unit. If he eats a food particle he
  23. gains an amount of energy equal to the FOOD VALUE parameter.
  24.      If a bug's energy goes to zero, he dies of starvation. Dead bugs
  25. become food particles.
  26.      If a bug of the opposite type is encountered, a fight will occur. The
  27. bug with the greater energy will win and he will eat his opponent, gaining
  28. the energy of the opponent.
  29.      Bugs live until they starve, are eaten, or exceed the age at death
  30. parameter.
  31.      If a bug accumulates energy above the MITOSIS NRG parameter, it will
  32. undergo cell division. Each of the two new cells will inherit half the
  33. energy of the parent. One of the pair will retain the parent's age, and the
  34. other will have an age of zero.
  35.    
  36. 3]MENU SELECTIONS
  37.      The single menu selections are as follow:
  38.  
  39.      GENE: Enter a sequence of four letters to determine the bug's behavior:
  40.       f = forward
  41.       l = turn left
  42.       r = turn right
  43.       ? + turn in a random direction (left, right, forward, reverse).
  44.       Successful bugs will have movement patterns which brings them in
  45. contact with food.
  46.  
  47.      PARMS: Enter values for initial conditions and values common to both
  48. types of bugs.
  49.  
  50.      FOOD VALUE: Amount on energy a bug receives when he eats a food
  51. particle (grey dots on the screen).
  52.        INITIAL ENERGY: All the bugs at the beginning of the simulation are
  53.      given this amount of energy.
  54.        FOOD RATE: This is the number of food particles added to the screen
  55.      after each cycle.
  56.        CYCLES: Number of cycles before ending the simulation. Enter -1 for
  57.      continuous mode.
  58.        INIT FOOD: Number of food particles on the screen at the start of
  59.      the simulation.
  60.        INIT # BUGS: Number of bugs of each type which start the simulation.
  61.      The initial bus have the amount of energy given in INITIAL ENERGY
  62.        but have random age, initial location, initial direction, and index
  63.      into their movement pattern.
  64.        MITOSIS ENERGY: The amount of food energy a bug must accumulate in
  65.      order to undergo cell division.
  66.  
  67.      GO: Begin the simulation.
  68.  
  69.      CONTINUE: You may stop the simulation at any time by clicking the left
  70. mouse button. The behavior or environment may be altered at this point.
  71. This selection allows you to restart the simulation.
  72.  
  73.      REPORT: This option tells you how many bugs are on the screen, how many
  74. births have occurred, how many deaths have occurred due to starvation, old
  75. age, or by being eaten.
  76.  
  77.      TRAILS: Turn this on to see the movement pattern of a bug type.
  78.  
  79.      QUIT: Serves no useful purpose.
  80.